projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ef7b1c
)
[HVM] Save/restore: trigger FPU state save based on v->fpu_initialised
author
Tim Deegan
<Tim.Deegan@xensource.com>
Mon, 4 Jun 2007 16:09:12 +0000
(17:09 +0100)
committer
Tim Deegan
<Tim.Deegan@xensource.com>
Mon, 4 Jun 2007 16:09:12 +0000
(17:09 +0100)
and not on the i387_valid flag, which has no meaning in this context.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
xen/arch/x86/hvm/hvm.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/hvm/hvm.c
b/xen/arch/x86/hvm/hvm.c
index 45a185456883e8f6942d963693e89f06c79b4b4a..1d70e4a3993c07276995eafa07fdca24772a91bd 100644
(file)
--- a/
xen/arch/x86/hvm/hvm.c
+++ b/
xen/arch/x86/hvm/hvm.c
@@
-269,7
+269,7
@@
static int hvm_save_cpu_ctxt(struct domain *d, hvm_domain_context_t *h)
/* Other vcpu register state */
vc = &v->arch.guest_context;
- if ( v
c->flags & VGCF_i387_vali
d )
+ if ( v
->fpu_initialise
d )
memcpy(ctxt.fpu_regs, &vc->fpu_ctxt, sizeof(ctxt.fpu_regs));
else
memset(ctxt.fpu_regs, 0, sizeof(ctxt.fpu_regs));
@@
-361,7
+361,7
@@
static int hvm_load_cpu_ctxt(struct domain *d, hvm_domain_context_t *h)
vc->debugreg[6] = ctxt.dr6;
vc->debugreg[7] = ctxt.dr7;
- vc->flags = VGCF_
i387_valid | VGCF_
online;
+ vc->flags = VGCF_online;
v->fpu_initialised = 1;
/* Auxiliary processors should be woken immediately. */